import request from '@/utils/request'

// 查询售后单列表
export function listBizAfterSaleOrder (query) {
  return request({
    url: '/biz/bizAfterSaleOrder/list',
    method: 'get',
    params: query
  })
}


// 新增售后单
export function addBizAfterSaleOrder (data) {
  return request({
    url: '/biz/bizAfterSaleOrder',
    method: 'post',
    data: data
  })
}

// 修改售后单
export function updateBizAfterSaleOrder (data) {
  return request({
    url: '/biz/bizAfterSaleOrder',
    method: 'put',
    data: data
  })
}
// 修改售后单
export function updateBizAfterUser (data) {
  return request({
    url: '/biz/bizAfterSaleOrder/update',
    method: 'post',
    data: data
  })
}

export function remove (id) {
  return request({
    url: '/biz/bizAfterSaleOrder/'+id,
    method: 'delete'
  })
}
